package com.yanqu.xiuxian.config.elementalbonds.enums;

import java.util.Random;

public enum ElementalBondsDirectionType {

    UP(1, "上"),
    RIGHT(2, "右"),
    DOWN(3, "下"),
    LEFT(4, "左"),
    ;

    private final int type;
    private final String desc;

    ElementalBondsDirectionType(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static ElementalBondsDirectionType getRandomType(Random random) {
        int nextInt = random.nextInt(ElementalBondsDirectionType.values().length);
        return ElementalBondsDirectionType.values()[nextInt];
    }

    public int getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

}
